<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: 14318
  Date: 2021/12/4
  Time: 20:20
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
欢迎管理员：${Master_name}<br>
以下为用户申请的游戏陪玩请确认：<br>




<form action="${pageContext.request.contextPath}/to_apply_list" method="get">



    游戏类型：
<%--    <input type="text" name="game_type" value="${params.game_type}">--%>
     <input type="text" name="game_type" value="${params.game_type}">
<%--    <select name="game_type">--%>
<%--        <c:forEach items="${game_list_m}" var="game_list_m">--%>
<%--            <option> ${game_list_m.game_type}</option>--%>
<%--        </c:forEach>--%>
<%--    </select><br>--%>
    游戏名称：<input type="text" name="game_name" value="${params.game_name}">

    游戏玩家：<input type="text" name="player" value="${params.player}">


    <%--    年龄：<input type="text" name="age" value="${params.age}">--%>

    <input type="submit" value="搜索">
</form>
<table>
    <tr>
        <th>&nbsp;</th>
        <th>ID</th>
        <th>游戏类型</th>
        <th>游戏名称</th>
        <th>房主</th>
        <th>房间状态</th>
    </tr>
    <c:forEach items="${pageData.list}" var="game_list">
        <tr>
            <td><input type="checkbox" name="ids" value="${student.id }"/></td>
            <td>${game_list.id}</td>
            <td>${game_list.game_type}</td>
            <td>${game_list.game_name}</td>
            <td>${game_list.player}</td>
            <td>${game_list.play_state}</td>
            <td><a href="${pageContext.request.contextPath}/delete_master/${game_list.id }">删除</a></td> |
            <td><a href="${pageContext.request.contextPath}/edit_master/${game_list.id }">修改</a></td>
            <td><a href="${pageContext.request.contextPath}/approve_master/${game_list.id }">批准</a></td>
        </tr>
    </c:forEach>
    <tr>
        <td class="td2">
            <span>第${pageData.currPage}/ ${pageData.totalPage}页</span>
            <span>总记录数：${pageData.totalCount } 每页显示: ${pageData.pageSize}</span>
            <span>
              <c:if test="${pageData.currPage != 1}">
                  <a href="${pageContext.request.contextPath }/to_apply_list?currentPage=1">[首页]</a>
                  <a href="${pageContext.request.contextPath }/to_apply_list?currentPage=${pageData.currPage-1}">[上一页]</a>
              </c:if>
                <c:if test="${pageData.currPage != pageData.totalPage}">
                    <a href="${pageContext.request.contextPath }/to_apply_list?currentPage=${pageData.currPage+1}">[下一页]</a>
                    <a href="${pageContext.request.contextPath }/to_apply_list?currentPage=${pageData.totalPage}">[尾页]</a>
                </c:if>
            </span>
        </td>
    </tr>
</table>



apply_list
</body>
</html>
